<script setup>
import { ref } from 'vue'
import { cateListServer } from '@/api/article.js'

const cateId = defineModel()
const cateList = ref([])

const getCateList = async () => {
  const res = await cateListServer()
  cateList.value = res.data
}
getCateList()
</script>

<template>
  <el-select class="channel-select" v-model="cateId">
    <el-option
      v-for="item in cateList"
      :label="item.cate_name"
      :value="item.id"
      :key="item.id"
    ></el-option>
  </el-select>
</template>

<style scoped></style>
